Skip to main content

XPDF_SelectionChanged

Type

message

Summary

Sent to the current card when the user changes the text selection

Syntax

XPDF_SelectionChanged <selectionRange>

Description

Sent to the current card when the user changes the text selection

Parameters

NameTypeDescription

selectionRange

A comma-delimited list of 4 integers:

  • startPageNumber - The page where selection begins.
  • startCharOnPage - The character index (1..N) of the first selected character.
  • endPageNumber - The page where selection ends.
  • endCharOnPage - The character index (1..N) of the last selected character.

Examples

on XPDF_SelectionChanged pSelectionRange
local theSelectedText
XPDFViewer_GetSelectionUnicode "Document1", "theSelectedText"
set the text of field "selected text" to textDecode(theSelectedText,"UTF16")
end XPDF_SelectionChanged

Compatibility and Support

Introduced

LiveCode 1.0.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?